package example.com.zyfypt_618zgm.model;


import retrofit2.Call;

import example.com.zyfypt_618zgm.iface.Logoutiface;
import example.com.zyfypt_618zgm.service.LogoutService;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by 小茗同学 on 2017/6/1.
 */

public class LogoutModel  implements Logoutiface {
    private Retrofit retrofit;
    private String BASEURL="http://amicool.neusoft.edu.cn/";
    public LogoutModel() {
        retrofit =new Retrofit.Builder().baseUrl(BASEURL).addConverterFactory(GsonConverterFactory.create()).build();
    }

    @Override
    public Call<String> getResult(String sessionID) {
        LogoutService logoutservice =retrofit.create(LogoutService.class);
        return logoutservice.logout(sessionID);
    }
}
